<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
<body>
<form th:action="@{/user/update}" method="post">
    <input type="hidden" name="uid" th:value="${user.uid}">
    姓名：<input type="text" name="uname" th:value="${user.uname}"/><br/>
    性别：<input type="radio" name="sex" value="1" th:checked="${user.sex==1}"/>男
            <input type="radio" name="sex" value="2" th:checked="${user.sex==2}"/>女<br/>
    出生日期：<input type="date" name="birthday" th:value="${#dates.format(user.birthday,'yyyy-MM-dd')}"><br>
    入职时间：<input type="date" name="joinTime" th:value="${#dates.format(user.joinTime,'yyyy-MM-dd')}"/><br/>
    学历：<input type="text" name="education" th:value="${user.education}"/><br/>
    职务：
        <select name="jid">
            <option value="">请选择职务</option>
            <option th:selected="${user.jid eq job.jid}" th:each="job:${jobList}" th:value="${job.jid}" th:text="${job.title}"></option>
        </select><br>
    住址：<input type="text" name="address" th:value="${user.address}"/><br/>
    电话：<input type="text" name="phone" th:value="${user.phone}"/><br/>
    紧急联系人：<input type="text" name="ecPerson" th:value="${user.ecPerson}"/><br/>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>